
<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title>HTML5——坦克大战</title>
</head>

<body>
<div id="main" style="text-align: center; margin-left:auto;margin-right:auto;"></div>
</body>

<script type="text/javascript" src="js/tank.js"></script>
<script>

    window.onload = function (){
        document.getElementById("main").appendChild(canvas);
        init();
    }
</script>

</html>